#!/bin/sh -e

sed -i '2i#include <sys/sysmacros.h>' smdev.c
sed -i '/PREFIX/s/.*/PREFIX = \/usr/' config.mk

make
make DESTDIR="$1" install
